package com.lanou3g.code0412.compute;

import com.lanou3g.code0412.inter.Computer;
import com.lanou3g.code0412.inter.Mouse;
import com.lanou3g.code0412.inter.UDisk;

/**
 * If there are no bugs, it was created by Chen FengYao on 2018/4/12;
 * Otherwise, I don't know who created it either
 */

public class Main {
    public static void main(String[] args) {
        Computer computer = new Computer();
        UDisk uDisk = new UDisk();
        Mouse mouse = new Mouse();

        computer.setUsb(mouse);
        computer.getDataFromUSB();
//        computer.setUsb(uDisk);
//
//        computer.getDataFromUSB();



        computer.showDatas();
    }
}
